import type { PageParams, PageResult } from '@/types/global'
import type { Comment } from '@/types/comment'
import { http } from '@/utils/http'

/**
 * 首页-轮播图
 * @param id 电影或视频的id
 * @param type 传入为1查找电影的评论或 2 查找视频的评论
 */
export const getCommentByIdAPI = (id: string, type: string) => {
    return http<Comment[]>({
        method: 'GET',
        url: '/comment',
        data: { id, type }

    })
}